#include <iostream>

using namespace std;

int main(int argc, char* argv[], char* env[])
{
    cout << "hello c++ linux" << endl;
    printf("这是命令行参数:\n");
    for (int i = 0; i < argc; i++)
    {
        cout << i << ":" << argv[i] << endl;
    }
    printf("这是环境变量:\n");
    for (int i = 0; env[i]; i++)
    {
        cout << i << ":" << env[i] << endl;
    }
    return 0;
}
